// index.js
Page({
  toLogPage() {
    console.log("=======触发点击====")
    wx.navigateTo({
      url: '/pages/logs/logs?name=ddd&age=13',
    })
  },
  handleView1() {
    console.log("view1被点了")

  },
  handleButton1() {
    console.log("button1被点了")
  },
  handleView2() {
    console.log("view2被点了")
  },
  handleButton2() {
    console.log("button2被点了")
  },

  handleButton(event) {
    //data-*方案的数据，会放在event.currentTarget.dataset中
    //currentTarget:事件绑定者---》button
    //target: 事件触发者--》button
    console.log(event)
    console.log(event.target.dataset.name)
    // event.mark
    console.log(event.mark.name)
  },
})